package sort;

public class Application {
    static int[] nums = {3,14,62,4,5,6,7,8,46,2};
//    static int[] nums = {61,90,34,56,21,8,43,68};

    public static void main(String[] args) {
        for (int num : nums) {
            System.out.print(num);
            System.out.print(' ');
        }



//        BubbleSort.sort(nums);
//        SelectionSort.sort(nums);
//        InsertionSort.sort(nums);
//        ShellSort.shellSort(nums);
//        ShellSort.sort(nums);
        QuickSort.sort(nums,0, nums.length-1);




        System.out.println();
        for (int num : nums) {
            System.out.print(num);
            System.out.print(' ');
        }

    }
}
//公开方法可以用是没错，但是得导入